/*!
    create css by 2020-11-16  kexuemihe  @wang   page----精品课件
*/
// 精品课件的版心  @mixin命令 调用 @include container

.swiper-slide {
    // position: relative;
}

.swiper-container {
    position: relative;
}

.swiper-container .hide {
    opacity: 0;
}

.swiper-button-next,
.swiper-button-prev {
    transition: opacity 0.5s;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #FFF;
    box-shadow: 0px 0px 4px 0px rgba(41, 121, 248, 0.4);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 22px;
}

video {
    width: 100%;
    display: none;
}

audio {
    position: absolute;
    left: 0;
    bottom: 1rem;
    margin-left: 25%;
    width: 50%;
    height: 10%;
    border: 0;
    outline: 0;
}

.swiper-slide img {
    width: 100%;
}

.swiper-slide video {}


#rightCon {
    padding: 0 2.1rem;
}

/*课程年龄下拉框*/
.sel {
    margin-top: 1.9rem;

    >div {
        display: flex;
    }

    .classSel,
    .ageSel {
        display: flex;
        margin-right: 2rem;
    }

    span {
        font-size: 1.2rem;
        font-family: PingFang;
        font-weight: 500;
        color: #666666;
        line-height: 2rem;
    }

    .undSel {
        margin-left: 1rem;
        // width: 7rem;
        $height: 2rem;
        height: $height;
        border-radius: $height / 2;
        background: rgba(41, 121, 248, 0.1) url(../images/courseware/arrowbottom.png) no-repeat 90% 50%;
        position: relative;
        padding: 0 2rem 0 1rem;
        z-index: 100;

        //    #courseSelBox>li a{
        //     text-indent: 15px;
        //    }
        a {
            text-indent: 10px;
            display: flex;
            align-items: center;
            white-space: nowrap;

            span {}
        }

        >a {
            text-indent: 1%;
        }

        ul {
            margin-top: .8rem;
            display: none;
            position: absolute;
            background-color: #FFF;
            border-radius: $height / 6;
            padding: .8rem 0 .5rem;
            // display: table;
            overflow: hidden;
            left: 0;

            li {
                padding: 0 1.5rem 0 1rem;

                a {
                    color: #666666;
                    // margin-left: 1.2rem;
                    white-space: nowrap;

                    span {
                        font-size: 1rem;
                        width: 100%;
                        line-height: 3rem;
                    }
                }
            }

            li:hover {
                background-color: rgba(41, 121, 248, 0.1);
                width: 100%;
                background: rgba(41, 121, 248, .1);
                border-radius: 3px;
            }

            li.selChecked {
                background: rgba(41, 121, 248, .1) url(../images/courseware/矢量智能对象.png) no-repeat 10% 50%;

                a {
                    span {
                        color: #2979F8;
                    }
                }
            }
        }

    }

}

/*   // courses 课件内容   一行4个课件每个21%   */
.courses {
    margin-top: 2rem;

    ul {
        display: flex;
        flex-wrap: wrap;

        li {
            width: 21.5%;
            margin-right: 3%;
            background: #FFFFFF;
            box-shadow: 0px 0px 4px 0px rgba(41, 121, 248, 0.1);
            border-radius: 5px;
            margin-bottom: 1.2rem;

            a {
                display: block;

                img {
                    width: 100%;
                    border-top-left-radius: 5px;
                    border-top-right-radius: 5px;
                }

                >div {
                    display: flex;
                    font-size: 1.2rem;
                    line-height: 3rem;
                    // position: relative;
                }

                em {
                    // position: absolute;
                    // right: 4px;
                    // bottom: -2px;
                    // z-index: 1000;
                }

                p {
                    width: 85%;
                    text-indent: 11%;
                    white-space: nowrap;
                    overflow: hidden;
                    font-family: PingFang;
                    font-weight: 500;
                    color: #666666;
                    margin-right: 3%;
                }
            }
        }
    }
}

// previewPPTX点击某一课时，显示预览课时的弹窗
.previewPPTX {
    width: 100%;
    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    background-color: rgba(229, 229, 229, 0.5);
    z-index: 1000;

    .centerBox {
        z-index: 1000;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 61%;
        background: #FAFAFA;
        border-radius: 1rem;
        text-align: center;
        font-family: PingFang;
        font-weight: 500;
    }

    #lookCourse {
        position: absolute;
        right: 10%;
        top: 0;
        font-size: 1.6rem;
        font-family: PingFang SC;
        font-weight: 500;
        color: #29A7F7;
        line-height: 5.3rem;
    }

    .close {
        position: absolute;
        right: 10px;
        top: 10px;
        cursor: pointer;
    }

    h3 {
        font-size: 1.6rem;
        font-family: Source Han Sans CN;
        font-weight: 400;
        color: #333333;
        line-height: 5.3rem;
    }

    .swiper-container {}

    .PPTXCon {
        padding: 0 1.7rem 1.7rem;

        #previewErr {
            display: none;
        }
    }
}

// 三个点下拉操作栏 更多操作
#opt {
    position: fixed;
    left: 0;
    min-width: 100px;
    background: #FFFFFF;
    box-shadow: 0px 0px 4px 0px rgba(0, 0, 0, 0.1);
    top: 0;
    z-index: 1000;
    display: none;

    ul {
        li {
            span {
                display: inline-block;
                width: 100%;
                font-size: 1rem;
                font-family: PingFang SC;
                font-weight: 400;
                color: #666666;
                line-height: 3rem;
                text-align: center;

                &:hover {
                    background-color: rgba(41, 121, 248, .1);
                }
            }

            &:nth-child(1) span {}

            &:nth-child(1) {
                padding: .5rem 0;
                border-bottom: 1px solid #EEEEEE;
            }

            &:nth-child(2) {
                padding: .5rem 0;

            }
        }
    }
}